package com.yuliang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuliang.domain.R;
import com.yuliang.domain.dto.ChangeRoleStatusDto;
import com.yuliang.domain.entity.Role;
import com.yuliang.domain.vo.AddRoleVo;
import com.yuliang.domain.vo.UpdateRoleVo;

import java.util.List;


/**
 * 角色信息表(Role)表服务接口
 *
 * @author makejava
 * @since 2023-10-07 09:50:18
 */
public interface RoleService extends IService<Role> {

    List<String> selectRoleKeyByUserId(Long id);

    R pageList(Integer pageNum, Integer pageSize, String roleName, String status);

    R changeRoleStatus(ChangeRoleStatusDto changeRoleStatusDto);

    R addRole(AddRoleVo addRoleVo);

    R getRoleDetail(Long id);

    R updateRole(UpdateRoleVo updateRoleVo);

    R deleteRole(Long id);

    R listAllRole();
}

